import { RouteRecordRaw } from 'vue-router';
import Layout from '@/layouts/index.vue';

const refinery : RouteRecordRaw[] = [
	{
		path: '/refinery',
		name: 'refinery',
		component: Layout,
		redirect: '/refinery/management',
		meta: {
			title: '炼厂管理',
			icon: 'filter',
		},
		children: [
			{
				path: 'quotation',
				name: 'refineryQuotation',
				component: () => import('@/pages/refinery/quotation/index.vue'),
				meta: {
					title: '库存报价',
				},
			},
			{
				path: 'management',
				name: 'refineryManagement',
				component: () => import('@/pages/refinery/management/index.vue'),
				meta: {
					title: '炼厂管理',
				},
			},
			{
				path: 'management/stockPage',
				name: 'stockPage',
				component: () => import('@/pages/refinery/management/stockPage.vue'),
				meta: {
					title: '库存管理',
					hidden: true, // 在菜单中隐藏
				},
			},
			{
				path: 'add',
				name: 'refineryAdd',
				component: () => import('@/pages/refinery/add/index.vue'),
				meta: {
					title: '新建炼厂',
					hidden: true, // 在菜单中隐藏
				},
			},
			{
				path: 'edit/:id',
				name: 'refineryEdit',
				component: () => import('@/pages/refinery/add/index.vue'),
				meta: {
					title: '编辑炼厂',
					hidden: true, // 在菜单中隐藏
				},
			},
		],
	},
];

export default refinery;